package com.ylyq.ylxx.model.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName OceanengineRejectReasonResult
 * @Description TODO
 * @Author xiaweichao
 * @Date 2020/7/1 11:16
 * @Version 1.0
 */
@NoArgsConstructor
@Data
@ApiModel(value = "获取计划审核建议返回参数")
public class OceanengineRejectReasonResult {

    /**
     * message : OK
     * code : 0
     * data : {"list":[{"creative_reject":[{"creative_id":1234,"reject_data":[{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]},{"creative_id":5678,"reject_data":[{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]}],"material_reject":[],"ad_reject":{"ad_id":1234,"reject_data":[]}},{"creative_reject":[],"material_reject":[],"ad_reject":{"ad_id":5678,"reject_data":[{"reject_item":"计划","reject_reason":"1. 您好，请添加风险提示语：\u201c具体金额以活动规则为准\u201d。 "}]}}]}
     * request_id : 2019081518283512700000100113146
     */

    private String message;
    private int code;
    private DataBean data;
    private String request_id;

    @NoArgsConstructor
    @Data
    @ApiModel(value = "获取计划审核建议返回参数实体")
    public static class DataBean {
        @ApiModelProperty(value = "审核建议数据")
        private List<ListBean> list;

        @NoArgsConstructor
        @Data
        @ApiModel(value = "获取计划审核建议返回参数实体审核建议数据")
        public static class ListBean {
            /**
             * creative_reject : [{"creative_id":1234,"reject_data":[{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]},{"creative_id":5678,"reject_data":[{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]}]
             * material_reject : []
             * ad_reject : {"ad_id":1234,"reject_data":[]}
             */

            private AdRejectBean ad_reject;
            private List<CreativeRejectBean> creative_reject;
            private List<MaterialRejectBean> material_reject;
            @ApiModelProperty(value = "1 表示程序化创意，0 表示自定义创意")
            private Integer is_procedual_ad;

            @NoArgsConstructor
            @Data
            @ApiModel(value = "计划维度审核建议")
            public static class AdRejectBean {
                /**
                 * ad_id : 1234
                 * reject_data : []
                 */
                @ApiModelProperty(value = "\t广告计划 id")
                private Long ad_id;
                private List<RejectDataBean> reject_data;
            }

            @NoArgsConstructor
            @Data
            @ApiModel(value = "\t\t程序化创意的素材维度审核建议")
            public static class MaterialRejectBean {
                @ApiModelProperty(value = "素材类型。1-图片，2-标题，3-视频，4-副标题，5-头图，6-摘要")
                private int material_type;
                @ApiModelProperty(value = "标题")
                private String title;
                @ApiModelProperty(value = "视频 id")
                private String video_id;
                @ApiModelProperty(value = "审核建议")
                private String reject_reason;
                @ApiModelProperty(value = "图片 id")
                private String[] image_id;
            }
            @NoArgsConstructor
            @Data
            @ApiModel(value = "\t创意维度审核建议")
            public static class CreativeRejectBean {
                /**
                 * creative_id : 1234
                 * reject_data : [{"reject_item":"","reject_reason":"1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。 \n"}]
                 */
                @ApiModelProperty(value = "创意 id")
                private Long creative_id;
                @ApiModelProperty(value = "审核建议数据")
                private List<RejectDataBean> reject_data;


            }
        }
    }
    @NoArgsConstructor
    @Data
    @ApiModel(value = "\t审核建议")
    public static class RejectDataBean {
        /**
         * reject_item :
         * reject_reason : 1. 您好，广告中含有虚假宣传或误导用户的内容，请修改，谢谢。

         */
        @ApiModelProperty(value = "审核项")
        private String reject_item;
        @ApiModelProperty(value = "审核建议")
        private String reject_reason;
    }
}
